package com.ztc.beans;
import java.util.Date;

public class BorrowingRecord {
    private int id;
    private String bookName;
    private String userName;
    private Date borrowingDate;
    private Date returnDate;
    private int day;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getBorrowingDate() {
        return borrowingDate;
    }

    public void setBorrowingDate(Date borrowingDate) {
        this.borrowingDate = borrowingDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public BorrowingRecord(int id, String bookName, String userName, Date borrowingDate, Date returnDate, int day) {
        this(bookName,userName,borrowingDate,returnDate,day);
        this.id = id;
    }

    public BorrowingRecord(String bookName, String userName, Date borrowingDate, Date returnDate, int day) {
        this.bookName = bookName;
        this.userName = userName;
        this.borrowingDate = borrowingDate;
        this.returnDate = returnDate;
        this.day = day;
    }
    public BorrowingRecord() {
    }

    @Override
    public String toString() {
        return "BorrowingRecord{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", userName='" + userName + '\'' +
                ", borrowingDate=" + borrowingDate +
                ", returnDate=" + returnDate +
                ", day=" + day +
                '}';
    }
}
